<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/menuAplicacionNovedades.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateTblprestamosTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:form>
                <p:panel id="panel" styleClass="panelCabeza" header="#{bundle.CreateTblprestamosTitle}">
                    <p:messages id="msgs"/>
                    <h:panelGrid columns="2">
                        <h:outputLabel value="#{bundle.CreateTblprestamosLabel_consecutivos}" for="consecutivos" />
                        <p:inputText id="consecutivos" value="#{tblprestamosController.selected.consecutivos}" title="#{bundle.CreateTblprestamosTitle_consecutivos}" required="true" requiredMessage="#{bundle.CreateTblprestamosRequiredMessage_consecutivos}"/>
                        <h:outputLabel value="#{bundle.CreateTblprestamosLabel_ideEmp}" for="ideEmp" />
                        <p:inputText id="ideEmp" value="#{tblprestamosController.selected.ideEmp}" title="#{bundle.CreateTblprestamosTitle_ideEmp}" required="true" requiredMessage="#{bundle.CreateTblprestamosRequiredMessage_ideEmp}"/>
                        <h:outputLabel value="#{bundle.CreateTblprestamosLabel_nomEmp}" for="nomEmp" />
                        <p:inputText id="nomEmp" value="#{tblprestamosController.selected.nomEmp}" title="#{bundle.CreateTblprestamosTitle_nomEmp}" required="true" requiredMessage="#{bundle.CreateTblprestamosRequiredMessage_nomEmp}"/>
                        <h:outputLabel value="#{bundle.CreateTblprestamosLabel_referencia}" for="referencia" />
                        <p:inputText id="referencia" value="#{tblprestamosController.selected.referencia}" title="#{bundle.CreateTblprestamosTitle_referencia}" required="true" requiredMessage="#{bundle.CreateTblprestamosRequiredMessage_referencia}"/>
                        <h:outputLabel value="#{bundle.CreateTblprestamosLabel_conceptoPrestamo}" for="conceptoPrestamo" />
                        <p:inputText id="conceptoPrestamo" value="#{tblprestamosController.selected.conceptoPrestamo}" title="#{bundle.CreateTblprestamosTitle_conceptoPrestamo}" required="true" requiredMessage="#{bundle.CreateTblprestamosRequiredMessage_conceptoPrestamo}"/>
                        <h:outputLabel value="#{bundle.CreateTblprestamosLabel_fechaPrestamo}" for="fechaPrestamo" />
                        <h:inputText id="fechaPrestamo" value="#{tblprestamosController.selected.fechaPrestamo}" title="#{bundle.CreateTblprestamosTitle_fechaPrestamo}" required="true" requiredMessage="#{bundle.CreateTblprestamosRequiredMessage_fechaPrestamo}">
                            <f:convertDateTime pattern="MM/dd/yyyy" />
                        </h:inputText>
                        <h:outputLabel value="#{bundle.CreateTblprestamosLabel_montoInicial}" for="montoInicial" />
                        <p:inputText id="montoInicial" value="#{tblprestamosController.selected.montoInicial}" title="#{bundle.CreateTblprestamosTitle_montoInicial}" required="true" requiredMessage="#{bundle.CreateTblprestamosRequiredMessage_montoInicial}"/>
                        <h:outputLabel value="#{bundle.CreateTblprestamosLabel_periodos}" for="periodos" />
                        <p:inputText id="periodos" value="#{tblprestamosController.selected.periodos}" title="#{bundle.CreateTblprestamosTitle_periodos}" required="true" requiredMessage="#{bundle.CreateTblprestamosRequiredMessage_periodos}"/>
                        <h:outputLabel value="#{bundle.CreateTblprestamosLabel_interes}" for="interes" />
                        <p:inputText id="interes" value="#{tblprestamosController.selected.interes}" title="#{bundle.CreateTblprestamosTitle_interes}" required="true" requiredMessage="#{bundle.CreateTblprestamosRequiredMessage_interes}"/>
                        <h:outputLabel value="#{bundle.CreateTblprestamosLabel_valorCuota}" for="valorCuota" />
                        <p:inputText id="valorCuota" value="#{tblprestamosController.selected.valorCuota}" title="#{bundle.CreateTblprestamosTitle_valorCuota}" required="true" requiredMessage="#{bundle.CreateTblprestamosRequiredMessage_valorCuota}"/>
                        <h:outputLabel value="#{bundle.CreateTblprestamosLabel_valorInteres}" for="valorInteres" />
                        <p:inputText id="valorInteres" value="#{tblprestamosController.selected.valorInteres}" title="#{bundle.CreateTblprestamosTitle_valorInteres}" required="true" requiredMessage="#{bundle.CreateTblprestamosRequiredMessage_valorInteres}"/>
                        <h:outputLabel value="#{bundle.CreateTblprestamosLabel_valorAbono}" for="valorAbono" />
                        <p:inputText id="valorAbono" value="#{tblprestamosController.selected.valorAbono}" title="#{bundle.CreateTblprestamosTitle_valorAbono}" required="true" requiredMessage="#{bundle.CreateTblprestamosRequiredMessage_valorAbono}"/>
                        <h:outputLabel value="#{bundle.CreateTblprestamosLabel_saldo}" for="saldo" />
                        <p:inputText id="saldo" value="#{tblprestamosController.selected.saldo}" title="#{bundle.CreateTblprestamosTitle_saldo}" required="true" requiredMessage="#{bundle.CreateTblprestamosRequiredMessage_saldo}"/>
                        <h:outputLabel value="#{bundle.CreateTblprestamosLabel_fechaComienzo}" for="fechaComienzo" />
                        <h:inputText id="fechaComienzo" value="#{tblprestamosController.selected.fechaComienzo}" title="#{bundle.CreateTblprestamosTitle_fechaComienzo}" required="true" requiredMessage="#{bundle.CreateTblprestamosRequiredMessage_fechaComienzo}">
                            <f:convertDateTime pattern="MM/dd/yyyy" />
                        </h:inputText>
                        
                    </h:panelGrid>

                    <p:commandButton action="#{tblprestamosController.create}" update="panel" value="#{bundle.CreateTblprestamosSaveLink}" />

                    <p:commandButton action="#{tblprestamosController.prepareList}" value="#{bundle.CreateTblprestamosShowAllLink}" immediate="true"/>
                </p:panel>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
